/*
 * DreamTime.
 * Copyright (C) DreamNet. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License 3.0 as published by
 * the Free Software Foundation. See <https://www.gnu.org/licenses/gpl-3.0.html>
 *
 * Written by Ivan Bravo Bravo <ivan@dreamnet.tech>, 2019.
 */

.field {
  @apply mb-4;

  .field-help {
    @apply block text-xs text-gray-600;
  }
}

.label {
  @apply block font-bold mb-2;
}

label[for] {
  @apply cursor-pointer;
}

input[type="checkbox"] {
  @apply bg-primary;
}

.input {
  @apply border border-input-light bg-input text-common;
  @apply p-2 rounded w-full;
  @include transition('background-color, color');
  outline: none !important;

  &:hover, &:focus {
    @apply text-white bg-input-light;
  }

  &::placeholder {
    @apply text-common-dark;
  }

  &[disabled] {
    @apply opacity-75 cursor-not-allowed;
  }

  &[readonly] {
    @apply text-common-light cursor-default #{!important};
  }

  &.input--sm {
    @apply text-sm px-2;
  }
}
